package com.shujia.io.eight;

import java.io.Serializable;

public class Person extends Animal implements Serializable {

    /*
    默认的 serialVersionUID, 在修改了类的时候, 会从新生成
     */
    private static final long serialVersionUID = 8479255818631928216L;

    // private static final long serialVersionUID;

    private String name;
    private Integer age;

    public Integer height;

    public Dog dog;

    public Person() {
        super("200");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

//    public int getHeight() {
//        return height;
//    }
//
//    public void setHeight(int height) {
//        this.height = height;
//    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
//                ", height=" + height +
                '}';
    }
}
